how to create a max heap